<template>
	<view>
		<view>
			<view class="container">
				<view class="form">
					<view class="input-group"><text class="title">注册</text></view>
					<view class="input-group">
					<input class="input" v-model="username" placeholder="请输入用户名"/></view>
					<view class="input-group">
					<input class="input" v-model="password" placeholder="请输入密码"/></view>
					<view class="input-group">
					<input class="input"  v-model="password1" placeholder="请重复输入密码"/></view>
					<button class="btn" type="primary" @click="handleLogin">注册</button>
					<view class="link">
						<text>已有账号？</text>
						<navigator url="/pages/tabBar/demos/Logon/Logon"  ><text class="text-blue">去登录</text></navigator>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				username: '',
				password: '',
				password1: ''
			}
		},
		methods: {
			handleLogin(){
				if(!this.username || !this.password || !this.password1 ){
					uni.showToast({
						title:'请输入完整信息',
						icon:'none'
					})
					return
				}
				uni.navigateTo({
					url:"/pages/tabBar/demos/Logon/Logon"
				})
			}
		}
	}
</script>

<style>

</style>
